package com.diy.sigmund.diycommon.designpatterns.state;

/**
 * @author ylm-sigmund
 * @since 2022/2/16 11:14
 */
public class GumballMachineTestDrive {

    public static void main(String[] args) {
        GumballMachine gumballMachine = new GumballMachine(5);

        System.out.println(gumballMachine);

        gumballMachine.insertQuarterState();
        gumballMachine.turnCrank();

        gumballMachine.insertQuarterState();
        gumballMachine.turnCrank();

        gumballMachine.insertQuarterState();
        gumballMachine.turnCrank();


    }

}
